package ph.com.gs3.formalistics.service.services;

import ph.com.gs3.formalistics.model.valueobjects.business.User;
import android.app.IntentService;
import android.content.Intent;
import android.os.Bundle;

public class SocketListenerService extends IntentService {

	public static final String TAG = SocketListenerService.class.getSimpleName();
	public static final String NAME = SocketListenerService.class.getName();

	public static final String EXTRA_CURRENT_USER = "current_user";

	private User currentUser;

	public SocketListenerService() {
		super(NAME);
	}

	@Override
	protected void onHandleIntent(Intent intent) {

		initializeFieldsFromExtras(intent.getExtras());

	}

	private void initializeFieldsFromExtras(Bundle extras) {

		currentUser = (User) extras.getSerializable(EXTRA_CURRENT_USER);

	}

}
